﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="waterlevelchart.aspx.cs" Inherits="GroundWater.waterlevel.waterlevelchart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script language="javascript" src="../js/common.js" type="text/javascript"></script>
    <script language="javascript" src="../js/jquery.js" type="text/javascript"></script>
    
    
    <link media=all href="../js/resources/_Common/Common.css" type=text/css rel=stylesheet>
    <link media=all href="../js/resources/_Loadding/Loadding.css" type=text/css rel=stylesheet>
    <link media=all href="../js/resources/_Panel/Panel.css" type=text/css rel=stylesheet>
    <link media=all href="../js/resources/_Button/Button.css" type=text/css rel=stylesheet>
    <link media=all href="../js/resources/_TextBox/TextBox.css" type=text/css rel=stylesheet>
</head>
<body>
    <form id="form1" runat="server">
    <table style="font-size:9pt; margin-bottom:10px;  ">
    <tr style="padding-bottom:10px; padding-top:10px;">
    <td>剖面：</td><td><asp:DropDownList ID="drpSectionPlane" runat="server" OnSelectedIndexChanged="drpSectionPlane_SelectedIndexChanged" DataSourceID="odsSectionPlane" DataTextField="Name" DataValueField="Code"    EnableViewState="false"  AutoPostBack="true"  OnDataBound="drpSectionPlane_DataBound"></asp:DropDownList></td>
    <td>比较日期：</td><td><input class="textField text-bg border-blur" id="txtStartDate" style="width:76px;" type="text" maxlength="16" runat="server" />&nbsp;<img onclick="WdatePicker({el:$dp.$('txtStartDate')})" src="../js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" /></td>
    <%--<td>图表类型：</td><td><asp:DropDownList ID="drpChartType" runat="server" onselectedindexchanged="drpChartType_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
    <asp:DropDownList ID="drp3D" runat="server" onselectedindexchanged="drp3D_SelectedIndexChanged" AutoPostBack="true">
    <asp:ListItem Value="0" Text="2D" Selected="True"></asp:ListItem>
    <asp:ListItem Value="1" Text="3D"></asp:ListItem>
    </asp:DropDownList>
    </td>--%>
    <td>图高：</td><td><input class="textField text-bg border-blur" id="txtHeight" type="text" value="342" maxlength="16" style="width:46px;" runat="server" /></td>
    <td>图宽：</td><td><input class="textField text-bg border-blur" id="txtWidth"  type="text" value="726" maxlength="16" style="width:46px;" runat="server" /></td>
    <td>
        <asp:Button ID="btnGenerate" runat="server" Text="生成图表" 
            onclick="btnGenerate_Click" OnClientClick="if(!isInteger(document.getElementById('txtWidth').value) || !isInteger(document.getElementById('txtHeight').value)) { alert('高和宽均为正整数,您填写的数据有误！'); return false; }" /></td><td></td>
    </tr>
    </table>
    
<asp:ObjectDataSource ID="odsSectionPlane" runat="server" SelectMethod="GetAll" TypeName="GroundWater.BusinessActions.SectionPlane" >
    <SelectParameters>
        <asp:Parameter Name="isStoredProc" Type="Boolean" DefaultValue="False" />
        <asp:Parameter Name="enableCache" Type="Boolean" DefaultValue="True" />
    </SelectParameters>
</asp:ObjectDataSource>
    
    <asp:Chart id="WaterLevelChart" runat="server" Palette="BrightPastel" BackColor="#F3DFC1" Width="612px" Height="396px" BorderDashStyle="Solid" BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="181, 64, 1">
		<titles>
			<asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" Text="水位图表" Name="Title1" ForeColor="26, 59, 105"></asp:Title>
		</titles>
		<legends>
			<asp:Legend TitleFont="Microsoft Sans Serif, 8pt, style=Bold" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Enabled="False" Name="Default"></asp:Legend>
		</legends>
		<borderskin SkinStyle="Emboss"></borderskin>
		<series>
			<asp:Series Name="Series1"></asp:Series>
		</series>
		<chartareas>
			<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="White" BackColor="OldLace" ShadowColor="Transparent" BackGradientStyle="TopBottom">
				<area3dstyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" />
				<axisy LineColor="64, 64, 64, 64"  LabelAutoFitMaxFontSize="8">
					<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"  />
					<MajorGrid LineColor="64, 64, 64, 64" />
				</axisy>
				<axisx LineColor="64, 64, 64, 64"  LabelAutoFitMaxFontSize="8">
					<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" Interval="1"  />
					<MajorGrid LineColor="64, 64, 64, 64" />
				</axisx>
			</asp:ChartArea>
		</chartareas>
	</asp:Chart>
    </form>
<script type="text/javascript">
//<![CDATA[
    jQuery(document).ready(function() {
        if (window.parent) {
            var title = window.parent.document.getElementById("contentTitle");
            if (title) {
                title.innerText = "水位柱状图";
            }
        }
    });
//]]>
</script>
    
    
</body>
<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
</html>
